package domain;

import java.util.*;

public class TechnicianQuery implements IQuery {
	
	/* (non-Javadoc)
	 * @see domain.IQuery#productQuery(java.util.Collection)
	 * @returns not validate products Collection
	 */
	public Collection productQuery(Collection products, Collection articles) {
		Collection aux = new ArrayList();
		Iterator it = products.iterator();
		while (it.hasNext()){
			Product p = (Product) it.next();
			if (!p.isValidate()){
				aux.add(p);
			}
		}
		return aux;
	}

}
